package com.hc.sort.server.service;

import java.util.*;

import com.hc.sort.server.dao.*;
import com.hc.sort.server.pojo.*;
import com.hc.sort.utils.*;

public class BusinessTypeServiceImpl implements BusinessTypeService {
	BusinessTypeDao typeDao=new BusinessTypeDaoImpl();
	
	@Override
	public int add(BusinessType businessType) {
		return typeDao.add(businessType);
	}

	@Override
	public int delete(int id) {
		return typeDao.delete(id);
	}

	@Override
	public int update(BusinessType businessType) {
		return typeDao.update(businessType);
	}

	@Override
	public BusinessType get(int id) {
		return typeDao.get(id);
	}

	@Override
	public List<BusinessType> findAll() {
		return typeDao.findAll();
	}

	@Override
	public BusinessType getByCode(String code) {
		return typeDao.getByCode(code);
	}

	@Override
	public List<BusinessType> searchByKeyword(String keyWord) {
		return typeDao.searchByKeyword(keyWord);
	}
}
